package com.shxy.controller.ui;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 登录信息
 */
@Data
public class LoginBean {
    @NotBlank(message = "账号不能为空")
    @Size(min = 3, max = 20, message = "账号长度在3-20个字符")
    private String username;        // 账号
    @NotBlank(message = "密码不能为空")
    @Size(min = 3, max = 16, message = "密码长度在3-16个字符")
    private String password;    // 密码
}
